//package com.org.config.interceptor;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * @author: vane.Q
// * @date: 2022/12/4 10:38
// */
//@Configuration
//public class InterceptorConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(tokenHandler())
//                .addPathPatterns("/**");
//    }
//    @Bean
//    public TokenInterceptor tokenHandler() {
//        return new TokenInterceptor();
//    }
//}
